package com.hdd.biz.finance.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 支付记录
 * </p>
 *
 * @author fang
 * @since 2021-03-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_biz_paymet")
@ApiModel(value="Paymet对象", description="支付记录")
public class Paymet implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String platformNo;

    private String paymentNo;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "作品ID")
    private String worksNo;

    private String rate;

    private String realityAmount;

    private String chargeAmount;

    @ApiModelProperty(value = "打赏金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "打赏状态 T,F")
    private String status;

    @ApiModelProperty(value = "作者ID")
    private String worksUserId;
    @ApiModelProperty(value = "充值平台")
    private String platform;
    @ApiModelProperty(value = "是否打开 T F")
    private String ifOpen;

    @ApiModelProperty(value = "赞赏方式 0 余额 1微信 2 支付宝")
    private String payMode;

    @ApiModelProperty(value = "是否匿名 T F")
    private String anonymity;

    private String remark;

    @TableField(exist = false)
    private String authorName;
    @TableField(exist = false)
    private String rewardName;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;




}
